import actions from '../actions/user'
import mutations from '../mutations/user'
export  const  user = {
    state: {
        userId: null,
        loginToken: null,
        name: '',
        avatar: '',
    },
    getters: {
        userId:state => {
            return state.userId
        },
        name:state => {
            return state.name
        },
        avatar:state => {
            return state.avatar
        },
        loginToken:state => {
            return state.loginToken
        }
    },
    mutations,
    actions
}
